package com.houxr.consumer.service;

import com.houxr.apis.DemoDubboService;

/**
 * Created by Administrator on 2017/6/25.
 */
public class DemoServiceConsumer {

    private DemoDubboService demoDubboService;

    public void setDemoDubboService(DemoDubboService demoDubboService) {
        this.demoDubboService = demoDubboService;
    }

    /**
     * 调用dubboService
     *
     * @param x
     * @param y
     * @return
     */
    public double consumerSum(double x, double y) {
        return demoDubboService.sum(x, y);
    }

}
